<template>
	<view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad(option) {
			//hlht://pages/index/index?orderType=1&id=1.MADGDW4N7/
			let q = option.q ? option.q : ""
			q = decodeURIComponent(q)
			let mData =q.split('?orderType=')[1].split('&id=');
			let type= mData[0] 
			let id = mData[1]
			console.log("type", mData);
			if(type == "1"){
				let splitId = id.split('.MADGDW4N7')[0]
				//助教下单页
				uni.redirectTo({
					url: `/pages/assistant-reserve/assistant-reserve?userId=${splitId}`
				})
			}else{
				uni.redirectTo({
					  url: '/pages/activity-sign/activity-sign?activityId=' + id+"&isFromQRcode=1"
				})
			}
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
